<?php

namespace App\Enums;

use MyCLabs\Enum\Enum;


final class SourceTypeEnum extends Enum
{
    public const Dhe = 1;
    public const Bj = 2;

    public const Local = 0;

    public static function getSourceTypeList()
    {
        return [
            self::Local,
            self::Dhe,
            self::Bj
        ];
    }

    public static function getSourceTypeListDesc($value): string
    {
        $desc = "";

        switch ($value){
            case self::Local:
                $desc = '本地';
                break;
            case self::Dhe:
                $desc = '大黄鹅';
            break;
            case self::Bj:
                $desc = '宝坚';
            break;
        }

        return $desc;
    }
}

